package com.rockcent.mall.lib.repository;

import com.rockcent.mall.lib.domain.MerchantDeductionsFlow;
import com.rockcent.mall.lib.domain.enumclass.MerchantDeductionsStatus;
import com.rockcent.mall.lib.domain.enumclass.MerchantDeductionsType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * Created by zhangjh on 2017/4/5.
 */
@Repository
public interface MerchantDeductionsFlowRepository extends JpaRepository<MerchantDeductionsFlow, Long>, JpaSpecificationExecutor {

    MerchantDeductionsFlow findTop1ByMallIdAndMerchantIdAndSettlementDateAndDeductionsStatusAndDeductionsType(Long mallId, Long merchantId, String settlementTime, MerchantDeductionsStatus deductionsStatus, MerchantDeductionsType deductionsType);


}
